home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr45 / convt2sn.zip / CONV2SND.HST < prev    next >
Text File  |  1993-02-03  |  3KB  |  91 lines

  1. CONVERT TO SOUND 1.77, by Kenneth Udut, January 27, 1993
  2.  
  3. Revision list:
  4. --------------
  5.  
  6. February 3, 1993
  7. 1.98
  8.         SECOND PUBLIC RELEASE
  9.  
  10.         New Features Include:
  11.         * Changeable Sampling Rate (5500, 11000, 22000)
  12.         * Ability to add the sound "name" (not 'filename')
  13.           in a form readable by DeskMate SOUND.PDM
  14.         * An ASK_QUESTIONS section of the source code, which
  15.           will allow me (or you) to ask questions of the end_user.
  16.  
  17.         Problems left: Interface is 'hacked together' - not smooth, consistant
  18.         or anything.  Also, I haven't yet found a way to set the sample size
  19.         EXACTLY -=- I'm hoping for a word from you or another for help!
  20.         Everything else seems okay, at the moment.
  21.  
  22.  
  23. 1.97    Implemented SAMPLE_RATE change.  Updated Documentation.
  24. 1.91    Changing READ to READLN solved problem of wierd "READ"'s.
  25. 1.78 - 1.90
  26.  
  27.         Added "questions", like "What's the sampling rate" and such.
  28.         Had trouble, as the program wanted to answer the questions FOR me
  29.         with 'garbage' replies.
  30.  
  31.  
  32. January 27, 1993
  33. 1.77:
  34.         FIRST PUBLIC RELEASE
  35.  
  36.         Files from size 0 up to the MAXIMUM size allowed by DeskMate Sound
  37.         can successfully be converted.
  38.  
  39.         Here's the magic sequence:
  40.  
  41. IF sample_size < 256 THEN samp_char_1 := CHR(sample_size)
  42.    ELSE BEGIN
  43.         IF sample_size < 65536 THEN
  44.            BEGIN
  45.              samp_char_1 := CHR(sample_size div 256);
  46.              samp_char_2 := CHR((sample_size div 256) + 1);
  47.              samp_char_3 := CHR(0);
  48.            END
  49.      ELSE
  50.         BEGIN
  51. samp_char_1 := CHR(sample_size div 65536);
  52. samp_char_2 := CHR(sample_size div 65536);
  53. samp_char_3 := chr((sample_size div 65536) + 1);
  54.          END;
  55.          END;
  56.  
  57. WRITE(header_part, samp_char_1, samp_char_2, samp_char_3);
  58.  
  59.         In other words, a file less than 256 bytes is encoded by just using
  60.         the corresponding ASCII code.  A file from 257 bytes to 65535 bytes
  61.         uses TWO bytes to signify file size.  A file from 65536 onward and
  62.         upward uses THREE bytes to signify file size!
  63.  
  64.         I'm not an engineer, and this whole idea is just a little beyond me,
  65.         but the power of HACK helped me immensely here!
  66.  
  67.  
  68. January 27, 1993
  69. 1.38 - 1.76: Another problem.
  70.  
  71.         Struggled to get CONV2SND to create, in the header, the correct
  72.         bytesize of the sound file.  I'm bad at math, and I hadn't much
  73.         of a clue as to how Tandy did it.
  74.  
  75.         Somewhere around 1.56 or so, I changed the read/write byte by byte,
  76.         to BLOCKREAD, BLOCKWRITE, which speeded up the copying process
  77.         TREMENDOUSLY!  No CRC check, though.  I'm not advanced enough to do
  78.         that yet.
  79.  
  80. January 24, 1993
  81. 1.37:  first working copy.
  82.  
  83.        Also, there is a "click" at the beginning of the sound file.  This
  84.        is merely the header of the ORIGINAL file, which can easily be
  85.        edited out.
  86.  
  87. January 14 - 24, 1993
  88. 1.00 to 1.36: struggled to get a working copy of this program going!
  89.  
  90. January 14, 1993 - start of the programming for CONV2SND!
  91.